﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace ASPNET.StarterKit.BusinessLogicLayer
{
    /// <summary>
    /// Summary description for Materials
    /// </summary>
    public class Materials
    {
       // private int _MaterialID;
        private int _ItemCode;
        private string _MaterialName;
        private int _MaterialDisc;

        public Materials(
          // int MaterialID,
           int ItemCode,
           string MaterialName,
           int MaterialDisc

            )
        {
           // _MaterialID = MaterialID;
            _ItemCode = ItemCode;
            _MaterialName = MaterialName;
            _MaterialDisc = MaterialDisc;
     }



        //public int MaterialID
        //{
        //    get
        //    {

        //        return _MaterialID;

        //    }

        //}

        public int ItemCode
        {
            get { return _ItemCode; }
            set { _ItemCode = value; }
        }


        public string MaterialName
        {
            get
            {
                if (String.IsNullOrEmpty(_MaterialName))
                {
                    return string.Empty;
                }
                return _MaterialName;

            }
            set
            {
                _MaterialName = value;
            }
        }

        public int MaterialDisc
        {
            get { return _MaterialDisc; }
            set { _MaterialDisc = value; }
        }

        
    }
}